'''

    for i in range(范围区间，指定循环的次数)
        i表示每次拿到的值

'''
sum = 0
for i in range(1,101):
    print(i)
    if i%2 == 0:
        sum += i
print(sum)
# 冒泡排序
a = [13,124,124,124,32543,654,75634,324]

for i in range(0,len(a)-1):
    for j in range(0,len(a)-i-1):
        if a[j]>a[j+1]:
            a[j],a[j+1] = a[j+1],a[j]
print(a)

